package gui;

import java.awt.BorderLayout;

import javax.swing.JDialog;
import javax.swing.JScrollPane;
import javax.swing.JTable;

import core.course.TimeTable;

public class TimeTableDialog extends JDialog
{


	private JTable m_TimeTable;
	/**
	 * 
	 */
	private static final long serialVersionUID = -5715440513726067732L;

	/**
	 * Create the dialog
	 */
	public TimeTableDialog(final TimeTable timeTable)
	{
		super();
		setTitle("Time table");
		setModal(true);
		setBounds(100, 100, 500, 375);

		final JScrollPane scrollPane = new JScrollPane();
		getContentPane().add(scrollPane, BorderLayout.CENTER);

		m_TimeTable = new JTable();
		m_TimeTable.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
		m_TimeTable.setModel(timeTable);
		scrollPane.setViewportView(m_TimeTable);
		//
	}

}
